#ifndef VIDEO_H_
#define VIDEO_H_
#include <string>
#include <gst/gst.h>
#include <glib.h>
#include <unistd.h>
#include <stdio.h>
class Video
{
 public:
  Video(std::string l,int w,int h); //picture properties setting
  ~Video(){};
  int  video_display();             
  friend gboolean bus_call(GstBus *bus,GstMessage *msg,gpointer data);
  friend void on_pad_added (GstElement *element,GstPad *pad,gpointer data);

 private: 
  std::string video_location;
  int picture_width;
  int picture_height;
  GMainLoop *loop;
  GstElement *pipeline,*source,*demuxer,*decoder,*sink;
  GstBus *bus;

         
};

#endif
